﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Universum.Integration.Tests.Bootstrap;
using StructureMap;
using Universum.Controllers;
using System.Web.Security;
using Universum.Infrastructure.Security;
namespace Universum.Integration.Tests.Controllers
{	
	[TestClass]
	public class AccountControllerTests : With_structuremap_bootstrap_context
	{
		[TestMethod]
		[DeploymentItem(@"D:\_2009_\Universum\trunk\Proiect\Tests\Integration\Universum.Integration.Tests\StructureMap.config.xml")]
		public void should_inject_default_services()
		{
			var controller = ObjectFactory.GetInstance<AccountController>();
			controller.FormsAuth.should_not_be_null();
			controller.FormsAuth.should_be_of_type<FormsAuthenticationService>();
			controller.MembershipService.should_not_be_null();
			controller.MembershipService.should_be_of_type<UserMembershipService>();
		}
	}
}
